class LoginApi(object):
    def __init__(self):
        self.url_verify = "http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=verify&r=0.8738978790961505"
        self.url_login = "http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=do_login&t=0.27582047918516905"
        self.headers = {"Content-Type": "application/x-www-form-urlencoded"}

    def get_verify(self,session):
        resp_verify = session.get(url=self.url_verify)
        return resp_verify

    def login(self,session,login_data):
        resp_login = session.post(url=self.url_login,headers=self.headers,data=login_data)
        return resp_login
